﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartProduction.Domain.采购委外订单
{
    /// <summary>
    /// 采购明细
    /// </summary>
    public class Purchasedetails: BaseModel
    {
        /// <summary>
        /// 明细主键
        /// </summary>
        [Key]
        public int PurchaseId { get; set; }
        /// <summary>
        /// 物料编码
        /// </summary>
        public string MaterialCode{ get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterialName{ get; set; }
        /// <summary>
        /// 单价
        /// </summary>
        public double UnitPrice{ get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public int Quantity { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string Unit { get; set; }
        /// <summary>
        /// 金额
        /// </summary>
        public double Amount { get; set; }
        /// <summary>
        /// 摘要
        /// </summary>
        public string Abstract { get; set; }
        /// <summary>
        /// 信息外键
        /// </summary>
        public int? MaterialId {  get; set; }
        /// <summary>
        /// 采购编码外键
        /// </summary>
        public string? POrderCode { get; set; }
    }
}
